package com.mycompany.crm.service;

import com.mycompany.crm.query.CustomerLossQuery;
import com.mycompany.crm.vo.CustomerLoss;

import java.util.Map;

/**
 * @author jy
 * @version 1.0
 * @date 2022/3/13 10:52
 */
public interface CustomerLossService {

    /**
     * 分页条件查询流失客户列表
     * @param customerLossQuery
     * @return
     */
    Map<String, Object> queryCustomerLossByParams(CustomerLossQuery customerLossQuery);

    /**
     * 通过流失客户的ID查询对应流失客户的记录
     * @param integer
     * @return
     */
    CustomerLoss selectByPrimaryKey(Integer integer);

    /**
     * 更新流失客户的流失状态
     * @param id
     * @param lossReason
     */
    void updateCustomerLossStateById(Integer id, String lossReason);
}
